package com.atguigu.spzx.cloud.api.client;


import com.atguigu.spzx.cloud.model.entity.Order;
import com.atguigu.spzx.cloud.model.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "spzx-cloud-order")
public interface OrderFeignClient {

    @GetMapping("/api/order/findOrderListByUserId/{userId}")
    List<Order> findOrderListById(@PathVariable("userId") Long userId ) ;

}